<!DOCTYPE html>
<html>
<head lang="en">
    <base href="<?php echo $this->config->item('base_url')?>"/>
    <meta charset="UTF-8">
    <title></title>
    <link href="../WeEngine/web/resource/css/bootstrap.min.css" rel="stylesheet">
    <link href="../WeEngine/web/resource/css/common.css" rel="stylesheet">
    <link href="../WeEngine/web/resource/css/bootstrap-theme.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <h1 class="title">移动数据统计</h1>
    <table class="table-bordered table table-responsive table-striped">
        <thead>
        <tr>
            <th>姓名</th>
            <th>电话</th>
            <th>所在区</th>
            <th>小区</th>
            <th>套餐类型</th>
            <th>是否可受理</th>
            <th>预定时间</th>
        </tr>
        </thead>
        <tbody>
        <?php if(empty($result)):?>
            <tr><td colspan="5">无记录</td></tr>
        <?php endif;?>


        <?php foreach($result as $item):?>
            <tr>
                <td><?php echo $item->name;?></td>
                <td><?php echo $item->phone;?></td>
                <td><?php echo $item->district?></td>
                <td><?php echo $item->community?></td>
                <td><?php echo $item->type == 1? "10M宽带" : "20M宽带" ?> </td>
                <td><?php echo intval($item->accept) == 1 ? "可受理" : "暂不可受理" ?></td>
                <td><?php echo $item->datetime ?></td>
            </tr>
        <?php endforeach;?>
        </tbody>

    </table>

</div>
</body>
<script src="../WeEngine/web/resource/js/lib/jquery-1.11.1.min.js"></script>
<script src="../WeEngine/web/resource/js/lib/bootstrap.min.js"></script>
<script>

</script>
</html>